
<nav class="navbar navbar-expand-md navbar-dark bg-ms">
    <div class="container">
        <a class="navbar-brand" href="./~/admin/"><%=title %></a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample04" aria-controls="navbarsExample04" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarsExample04">
            <ul class="navbar-nav mr-auto">
                <% category.forEach(function(item){%>
                <li class="nav-item <%if(item.active==true){%>active<%}%>" >
                    <%if(item.id=='Home'){%>
                    <a href="../../../../../../../" class="nav-link"><%=item.title %></a>
                    <%}else{%>
                    <a href="./~/category/<%=item.id%>/" class="nav-link"><%=item.title %></a>
                    <%}%>
                </li>
                <% })%>
            </ul>
            <div class="form-inline mt-2 mt-md-0">
                <input class="form-control mr-sm-2 Search-input" type="text" id="Search" placeholder="搜素" aria-label="Search">
                <button  class="btn btn-outline-success my-2 my-sm-0 Search" Link-id="#Search" type="submit">搜素</button>
            </div>
            <ul class="nav navbar-nav ml-auto">
                <li class="nav-item">
                    <a class="nav-link text-danger"  target="_blank">
                      
                    </a>
                </li> 
            </ul>
        </div>
    </div>
</nav>